#include <gtest/gtest.h>
#include "../sample/navigation_task_with_timeout.h"
#include "scheduler/sequence_scheduler.h"
#include "task/task_factory.h"
#include "scheduler/scheduler_factory.h"

TEST(test_task_timeout, test_task_timeout_one_timeout)
{
    auto navigation_task_with_timeout = task::TaskFactory<NavigationTaskWithTimeout>::createTask("navigation_task_with_timeout");

    auto sequence_scheduler = scheduler::SchedulerFactory<scheduler::SequenceScheduler>::createScheduler("scheduler");

    sequence_scheduler->appendTask(navigation_task_with_timeout);
    sequence_scheduler->run();
    EASE_INFO("done");
}
